package com.hwh.springdatajpademo.pojo;

import lombok.Data;

@Data
public class Pet {
    private String name;
    private User user;

    public Pet(String name, User user) {
        this.name = name;
        this.user = user;
    }

    @Override
    public String toString() {
        return "Pet{" +
                "name='" + name + '\'' +
                ", user=" + user +
                '}';
    }
}
